<?php

declare(strict_types=1);

namespace App\Model\Admin;



use App\Model\Model;
use Carbon\Carbon;

/**
 * @property int $post_id 岗位ID
 * @property string $post_code 岗位编码
 * @property string $post_name 岗位名称
 * @property int $post_sort 显示顺序
 * @property int $status 状态（0正常 1停用）
 * @property string $remark 备注
 * @property int $created_by 添加人
 * @property Carbon $created_at 创建时间
 * @property Carbon $updated_at 修改时间
 * @property int $updated_by 修改人
 */
class Post extends Model
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'post';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['post_id', 'post_code', 'post_name', 'post_sort', 'status', 'remark', 'created_by', 'created_at', 'updated_at', 'updated_by'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['post_id' => 'integer', 'post_sort' => 'integer', 'status' => 'integer', 'created_by' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime', 'updated_by' => 'integer'];
}
